package com.shennong.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 符整国
 * @version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Enrollment {

    private Integer id;

    private Integer userId;

    private Integer courseId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime enrollmentDate;

}
